const api = require('../index')

module.exports = {
  batchToken: (files, type = 'image') => {
    return api.post('/upload/batchToken', { files, type })
  },
  videoThumb: (video_url) => {
    return api.post('/upload/videoThumb', { video_url })
  }
}